package com.chinapost.po;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Twdsb entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TWDSB", schema = "WDZY")
public class Twdsb implements java.io.Serializable {

	// Fields

	private String cid;
	private Tuser tuserByCcreateuserid;
	private Twdxx twdxx;
	private Tdept tdept;
	private Tuser tuserByCmodifyuserid;
	private String cname;
	private String ctype;
	private Timestamp csyrq;
	private Integer czjnx;
	private Double cyz;
	private Double cyzj;
	private Timestamp ccreatedate;
	private Timestamp cmodifydate;
	private String cbz;

	// Constructors

	/** default constructor */
	public Twdsb() {
	}

	/** minimal constructor */
	public Twdsb(String cid) {
		this.cid = cid;
	}

	/** full constructor */
	public Twdsb(String cid, Tuser tuserByCcreateuserid, Twdxx twdxx, Tdept tdept, Tuser tuserByCmodifyuserid, String cname, String ctype, Timestamp csyrq, Integer czjnx, Double cyz, Double cyzj, Timestamp ccreatedate, Timestamp cmodifydate, String cbz) {
		this.cid = cid;
		this.tuserByCcreateuserid = tuserByCcreateuserid;
		this.twdxx = twdxx;
		this.tdept = tdept;
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
		this.cname = cname;
		this.ctype = ctype;
		this.csyrq = csyrq;
		this.czjnx = czjnx;
		this.cyz = cyz;
		this.cyzj = cyzj;
		this.ccreatedate = ccreatedate;
		this.cmodifydate = cmodifydate;
		this.cbz = cbz;
	}

	// Property accessors
	@Id
	@Column(name = "CID", unique = true, nullable = false, length = 36)
	public String getCid() {
		return this.cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CCREATEUSERID")
	public Tuser getTuserByCcreateuserid() {
		return this.tuserByCcreateuserid;
	}

	public void setTuserByCcreateuserid(Tuser tuserByCcreateuserid) {
		this.tuserByCcreateuserid = tuserByCcreateuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CWDID")
	public Twdxx getTwdxx() {
		return this.twdxx;
	}

	public void setTwdxx(Twdxx twdxx) {
		this.twdxx = twdxx;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CDEPTID")
	public Tdept getTdept() {
		return this.tdept;
	}

	public void setTdept(Tdept tdept) {
		this.tdept = tdept;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CMODIFYUSERID")
	public Tuser getTuserByCmodifyuserid() {
		return this.tuserByCmodifyuserid;
	}

	public void setTuserByCmodifyuserid(Tuser tuserByCmodifyuserid) {
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
	}

	@Column(name = "CNAME", length = 100)
	public String getCname() {
		return this.cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	@Column(name = "CTYPE", length = 100)
	public String getCtype() {
		return this.ctype;
	}

	public void setCtype(String ctype) {
		this.ctype = ctype;
	}

	@Column(name = "CSYRQ", length = 11)
	public Timestamp getCsyrq() {
		return this.csyrq;
	}

	public void setCsyrq(Timestamp csyrq) {
		this.csyrq = csyrq;
	}

	@Column(name = "CZJNX", precision = 5, scale = 0)
	public Integer getCzjnx() {
		return this.czjnx;
	}

	public void setCzjnx(Integer czjnx) {
		this.czjnx = czjnx;
	}

	@Column(name = "CYZ", precision = 10)
	public Double getCyz() {
		return this.cyz;
	}

	public void setCyz(Double cyz) {
		this.cyz = cyz;
	}

	@Column(name = "CYZJ", precision = 10)
	public Double getCyzj() {
		return this.cyzj;
	}

	public void setCyzj(Double cyzj) {
		this.cyzj = cyzj;
	}

	@Column(name = "CCREATEDATE", length = 11)
	public Timestamp getCcreatedate() {
		return this.ccreatedate;
	}

	public void setCcreatedate(Timestamp ccreatedate) {
		this.ccreatedate = ccreatedate;
	}

	@Column(name = "CMODIFYDATE", length = 11)
	public Timestamp getCmodifydate() {
		return this.cmodifydate;
	}

	public void setCmodifydate(Timestamp cmodifydate) {
		this.cmodifydate = cmodifydate;
	}

	@Column(name = "CBZ", length = 200)
	public String getCbz() {
		return this.cbz;
	}

	public void setCbz(String cbz) {
		this.cbz = cbz;
	}

}